<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css选择器:子选择器</title>
    <style>
        div>p {
            color: pink;
        }
    </style>
</head>

<body>
    <div>
        <ul>
            <li>1测试1</li>
        </ul>
        <p>div里面的P</p>
    </div>
    <p>外面的P</p>

</body>

</html>